<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>登录页面</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />

<link href="css/dlstyle.css" rel="stylesheet" type="text/css">
</head>
<script type="text/javascript">
</script>
<body style="background-image: url(img/backg.jpg);
             background-repeat: no-repeat; /*避免重复显示图片*/
             background-attachment: fixed; /*设置图片固定*/
             background-size: 100% 100%;">
		
			<div class="login-box" >
				<h3 class="title">在线选课系统</h3>

				<div class="login-form">
					<form  method="post" id ="login_from" action="Loginservlet">
						<div class="user-name">
							<label for="user">用户名</label>
							 <input type="text" name="username" id="userName" placeholder="用户名">
						</div>
						
						<div class="user-pass">
							<label for="password">密码</label> 
							<input type="password" name="password" id="password" placeholder="请输入密码">
						</div>
				<c:set  value="1" var="teacher"></c:set>		
				<c:set  value="0" var="student"></c:set>		
				</div>
				<br>
				<div class="login-links">
					<label for="remember-me">
					<input id="remember-me" type="checkbox" name="flag" value="${teacher}">教师
					</label> 
					<label for="remember-me">
					<input id="remember-me" type="checkbox" name="flag" value="${student}">学生
					</label> 
					
				</div> <br>
				           <div align="center">
								<a href="register.jsp" class="login-links"style="font-size: 14px;">前往注册</a>
						   </div><br>
				<div class="am-cf">
				   
					<input type="submit" name="" value="登 录"
						class="am-btn am-btn-primary am-btn-sm" > 
				</div>
				</form>
		</div>
	
</body>
</html>